﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace iS3.DAL.Attributes
{
    /// <summary>
    /// 拓展的描述属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class PropertyExternalAttribute : Attribute
    {
        private string _Unit;

        public string Unit
        {
            get { return _Unit; }
            set { _Unit = value; }
        }
        private string _Example;

        public string Example
        {
            get { return _Example; }
            set { _Example = value; }
        }
        private string _Target;

        public string Target
        {
            get { return _Target; }
            set { _Target = value; }
        }
        public PropertyExternalAttribute(string unit=null,string example=null)
        {
            _Unit = unit;
            _Example = example;
        }
    }
}
